import request from './request.js'

//查询课程
export function queryCourse(params){
    return request({
        url:'/api/course/search',
        method:'POST',
        data:params,
        header:{
            'Content-Type':'application/json'
        }
    })
}

//查询最新课程
export function getNewCourse(params){
    return request({
        url:'/api/course/mostNew',
        method:'POST',
        data:params,
        header:{
            'Content-Type':'application/json'
        }
    })
}